package IO流.IO流原理和流的分类;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * @Projectname java_based
 * @Filename FileUtilTest
 * @Author an
 * @Data 2022/7/26 8:02
 * @Description TODO
 */
public class FileUtilTest {

    public static void main(String[] args) {

        File srcFile = new File("123.jpg");
        File destFile = new File("456.jpg");

        try {
            FileUtils.copyFile(srcFile,destFile);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
